package com.cxhc.system.service.app.impl;

import java.util.List;

import com.cxhc.system.domain.app.ApprovalGroups;
import com.cxhc.system.mapper.app.ApprovalGroupsMapper;
import com.cxhc.system.service.app.IApprovalGroupsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 审批小组Service业务层处理
 * 
 * @author Dhq
 * @date 2024-08-06
 */
@Service
public class ApprovalGroupsServiceImpl implements IApprovalGroupsService
{
    @Autowired
    private ApprovalGroupsMapper approvalGroupsMapper;

    /**
     * 查询审批小组
     * 
     * @param id 审批小组主键
     * @return 审批小组
     */
    @Override
    public ApprovalGroups selectApprovalGroupsById(Long id)
    {
        return approvalGroupsMapper.selectApprovalGroupsById(id);
    }

    /**
     * 查询审批小组列表
     * 
     * @param approvalGroups 审批小组
     * @return 审批小组
     */
    @Override
    public List<ApprovalGroups> selectApprovalGroupsList(ApprovalGroups approvalGroups)
    {
        return approvalGroupsMapper.selectApprovalGroupsList(approvalGroups);
    }

    /**
     * 新增审批小组
     * 
     * @param approvalGroups 审批小组
     * @return 结果
     */
    @Override
    public int insertApprovalGroups(ApprovalGroups approvalGroups)
    {
        return approvalGroupsMapper.insertApprovalGroups(approvalGroups);
    }

    /**
     * 修改审批小组
     * 
     * @param approvalGroups 审批小组
     * @return 结果
     */
    @Override
    public int updateApprovalGroups(ApprovalGroups approvalGroups)
    {
        return approvalGroupsMapper.updateApprovalGroups(approvalGroups);
    }

    /**
     * 批量删除审批小组
     * 
     * @param ids 需要删除的审批小组主键
     * @return 结果
     */
    @Override
    public int deleteApprovalGroupsByIds(Long[] ids)
    {
        return approvalGroupsMapper.deleteApprovalGroupsByIds(ids);
    }

    /**
     * 删除审批小组信息
     * 
     * @param id 审批小组主键
     * @return 结果
     */
    @Override
    public int deleteApprovalGroupsById(Long id)
    {
        return approvalGroupsMapper.deleteApprovalGroupsById(id);
    }
}
